package com.mycc.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mycc.damin.TbGuides;
import com.mycc.damin.TbTicketOrders;
import com.mycc.damin.TbTourists;
import com.mycc.damin.TicketOrderDto;
import com.mycc.dao.ticketOrdersDao;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public interface TicketOrdersService {
    //订购（新增）
    boolean addTicketOrders(TbTicketOrders ticketOrders);

    //取消订单
    boolean cancelTicketOrders(int id, String newStatus);

    //查看所有订单
    IPage<TicketOrderDto> getAllTicketOrders(Integer currentPage, Integer pageSize);

    //通过id查看订单
    TicketOrderDto getTicketOrdersById(int id);

    //通过id修改订单
    boolean updateTicketOrderById(Long id, TicketOrderDto ticketOrderDto);

}
